home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1170_displaying_new_windows.rtf < prev    next >
Text File  |  1995-06-12  |  1KB  |  29 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Ohlfs;}
  2. \paperw12180
  3. \paperh8420
  4. \margl120
  5. \margr120
  6. {\colortbl;\red0\green0\blue0;\red84\green84\blue84;\red83\green83\blue83;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q: How do I display a new window I created programmatically?\
  8. \
  9. A: If you allocate a window and initialize it with the 
  10. \b init
  11. \b0  method, that window, by default, has display disabled.  When display is disabled, the window appears on-screen without a title and its contentView is white.  You must send it a 
  12. \b display
  13. \b0  message to get things going (i.e., so that it draws itself properly). Simply sending it 
  14. \b orderFront
  15. \b0 : is not sufficient. \
  16. \
  17. If your window is allocated and initialized with the 
  18. \b initContent:style:backing:buttonMask:defer:
  19. \b0  method, display is disabled only if the defer flag is set to NO.  If it's YES, the window looks fine when it gets the 
  20. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\b\fc1\cf1 orderFront
  21. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\b0\fc0\cf0 : message.\
  22. \
  23. QA345\
  24. \
  25. Valid for 2.0\
  26. Valid for 3.0\
  27. \
  28.  
  29.